using Ninject.Core;

namespace Nvigorate.WCF
{
    public class ServiceClientFactory
    {
        private static StandardKernel _kernel;

        public static ServiceClient<T> GetClient<T>() where T : class
        {
            return _kernel.Get<ServiceClient<T>>();
        }

        static ServiceClientFactory()
        {
            _kernel = new StandardKernel(new ServiceClientModule());
        }
    }
}